﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

public partial class LoginResponseData: ResponseData
{
    public const int successOldUser = 0;
    public const int successNewUser = 1;
    
    ///// <summary>
    ///// 常量数据
    ///// </summary>
    //public ConstData constData;

    /// <summary>
    /// 用户
    /// </summary>
    public User user;

    ///// <summary>
    ///// 最近一场战斗的连接信息
    ///// </summary>
    public LastBattleConnectInfo lastBattleConnectInfo;
    
    /// <summary>
    /// diamond gift
    /// </summary>
    public DiamondGiftData diamondGiftData;
}

public partial class LastBattleConnectInfo :ISerialize
{
    public string ip;
    public int port;
    public string battleId;
    public int mapId = 1;
}